
from django.urls import  converters
class UsernameConverter:
    regex = '[a-zA-Z0-9_]{5,12}'
    def to_python(self,value):
        return str(value)

